package com.example.springbootdemo.singleton;

/**
 * @author ：cici
 * @date ：Created in 2019/3/14 15:19
 */
public class Singleton {

    private static final Singleton singleton = new Singleton();

    public Singleton() {
    }

    public static Singleton getInstance(){
        return singleton;
    }

    public  void say(){
        System.out.println("saying!");
    }
}
